Fix Analytics account creation in the new setup flow#12239
Open
fresh3nough wants to merge 1 commit intogoogle:developfrom
Open
Fix Analytics account creation in the new setup flow#12239fresh3nough wants to merge 1 commit intogoogle:developfrom
fresh3nough wants to merge 1 commit intogoogle:developfrom
Conversation
…ings resolution before syncing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses issue:
Relevant technical choices
When creating a new Analytics account during the setup flow, the user lands on the Key Metrics setup screen where the Complete setup button remains stuck in a disabled, in-progress state. This happens because the background sync of audiences and custom dimensions is triggered before the Analytics 4 settings (including propertyID) have been resolved from the server. As a result, propertyID resolves to undefined, causing the isSyncing check to stay true indefinitely.
This fix awaits the resolution of the MODULES_ANALYTICS_4 getSettings() resolver before triggering the background sync of audiences and custom dimensions in KeyMetricsSetupApp. This ensures propertyID is available when the sync actions are dispatched, allowing isSyncing to correctly transition to false once syncing completes.
Changes:
Steps to reproduce
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist